package com.teng.mylibrary.ui.adapter

import com.teng.mylibrary.R
import com.teng.mylibrary.base.BaseVBAdapter
import com.teng.mylibrary.base.BaseViewHolder
import com.teng.mylibrary.databinding.ItemChooseSingleBinding

/**
 * Description:    单项选择adapter
 * Author:         liuteng
 * CreateDate:     2021年9月15日
 * UpdateRemark:   更新说明
 */
class SingleChooseAdapter( mList: ArrayList<String>) : BaseVBAdapter<String>(mList) {

    override fun getItemView(viewType: Int): Int {
        return R.layout.item_choose_single
    }

    override fun onBindHolder(holder: BaseViewHolder, position: Int) {
        val binding = holder.dataBinding as ItemChooseSingleBinding
        binding.tvContent.text = mList[position]
    }
}